<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">


						<div class="columns pull-left" style="margin-left:4px">
							<form id="uploadCertificateManagement" method="post"
								  enctype="multipart/form-data">
								<input class="form-control" style="width:200px" name="file" id="fileUrl" type="file">
							</form>
						</div>



						<div class="columns pull-left">
							<button shiro:hasPermission="jzweb:certificateManagement:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>删除
							</button>
						</div>

						<button shiro:hasPermission="jzweb:certificateManagement:remove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
							<i class="fa fa-trash" aria-hidden="true"></i>批量禁用
						</button>

						<button shiro:hasPermission="jzweb:certificateManagement:remove" type="button" class="btn  btn-danger"
								onclick="batchRemoveDe()">
							<i class="fa fa-link" aria-hidden="true"></i>批量删除
						</button>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>

						<div class="columns pull-left" style="margin-left:4px">
							<select  id="certificateType" name="certificateType" class="form-control">
								<option value="">请选择证书类型</option>
								<option value="幼儿照护-初级">幼儿照护-初级</option>
								<option value="幼儿照护-中级">幼儿照护-中级</option>
								<option value="幼儿照护-高级">幼儿照护-高级</option>
								<option value="产后恢复-初级">产后恢复-初级</option>
								<option value="产后恢复-中级">产后恢复-中级</option>
								<option value="产后恢复-高级">产后恢复-高级</option>
							</select>
						</div>

						<div class="columns pull-left" style="margin-left:4px">
							<input id="siteName" name="siteName" type="text" class="form-control"
								   placeholder="请输入考核站点名称">
						</div>

						<div class="columns pull-left" style="margin-left:4px">
							<select  id="examYear" name="examYear" class="form-control">
								<option value="">考试年份</option>
								<option value="2019">2019</option>
								<option value="2020">2020</option>
								<option value="2021">2021</option>
								<option value="2022">2022</option>
								<option value="2023">2023</option>
								<option value="2024">2024</option>
								<option value="2025">2025</option>
							</select>
						</div>

<!--						<div class="columns pull-left" style="margin-left:4px">-->
<!--							<input id="openingDate" name="openingDate" style="width:150px"  class="form-control" type="text"-->
<!--								     placeholder="发证日期">-->
<!--						</div>-->

						<div class="columns pull-right col-md-1 nopadding">
							<input id="idNumber" name="idNumber" type="text" class="form-control"
								   placeholder="请输入身份证">
						</div>
						<div class="columns pull-right col-md-1 nopadding">
							<input id="siteName1" name="siteName1" type="text" class="form-control"
								   placeholder="请输入考核站点">
						</div>
						<div class="columns pull-left" style="margin-left:4px">
							<button type="button"
									class="btn  btn-success"
									onclick="
									compression($('#fileUrl'),$('#uploadCertificateManagement'),'/jzweb/certificateManagement/uploadCertificateManagement',$('#certificateType').val(),$('#siteName').val(),$('#examYear').val(),$('#openingDate').val())">
								<i class="fa fa-upload" aria-hidden="true"></i>导入
							</button>
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="jzweb:certificateManagement:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="jzweb:certificateManagement:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="jzweb:certificateManagement:resetPwd">
			<script type="text/javascript">
				var s_resetPwd_h = '';
			</script>
		</div>
	</div>

	<div th:include="include :: footer"></div>
	<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/js/webJs/jzweb/certificateManagement/certificateManagement.js"></script>
</body>
</html>